
// 导入包
const express = require('express')
const compression = require('compression')
const app = express()

// 一定要把这行代码，写在 静态资源托管之前
app.use(compression())
app.use(express.static('./dist'))

app.listen(8082, () => {
  console.log('server running at http://0.0.0.0')
})
